<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<div class="subnav">
  <div class="content-menu ib-a blue line-x"><a href='{:U("Tags/Tags/index")}' class="on"><em>tags管理</em></a><span>|</span>
  <a href='{:U("Tags/Tags/create")}' ><em>tags重建</em></a></div>
</div>
<style type="text/css">
html {
	_overflow-y:scroll
}
</style>
<div class="pad_10">
  <div class="table-list">
    <form name="myform" id="myform" action="{:U('Tags/Tags/delete')}" method="post">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="50"><input type="checkbox" value="" id="check_box" onclick="selectall('tagid[]');"></th>
            <th width="50">排序</th>
            <th>关键字</th>
            <th>信息总数</th>
            <th>最后使用时间</th>
            <th>点击次数</th>
            <th>最近访问时间</th>
            <th>相关操作</th>
          </tr>
        </thead>
        <tbody>
        <volist name="data" id="vo">
          <tr>
            <td width="50" align="center"><input type="checkbox" value="{$vo.tagid}" name="tagid[]"></td>
            <td><input type="text" name="listorder[{$vo.tagid}]" value="{$vo.listorder}" size="5" /></td>
            <td align="center">{$vo.tag}</td>
            <td align="center">{$vo.usetimes}</td>
            <td align="center">{$vo.lastusetime|date="Y-m-d H:i:s",###}</td>
            <td align="center">{$vo.hits }</td>
            <td align="center">{$vo.lasthittime|date="Y-m-d H:i:s",###}</td>
            <td align="center"><a href="{:U('Tags/Tags/edit' , array('tagid'=>$vo['tagid']) )}">修改</a> | <a href="{:U('Tags/Tags/delete' , array('tagid'=>$vo['tagid']) )}" onclick="return confirm('确认要删除 『 {$vo.tag} 』 吗？')">删除</a></td>
          </tr>
        </volist>
        </tbody>
      </table>
      <div class="btn">
        <label for="check_box">全选/取消</label>
        <input type="submit" class="button" name="dosubmit" value="删除" onclick="return confirm('您确认删除么，该操作无法恢复！')"  />
        <input type="submit" class="button" name="dosubmit" value=" 更新排序 "  onclick="myform.action='?g=Tags&m=Tags&a=listorder';myform.submit();" />
      </div>
    </form>
  </div>
</div>
<div id="pages">{$Page}</div>
</body>
</html>